/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author lzw
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface FtdsInvestors extends BasicModel<FtdsInvestors> {
  investorsJfmc?: string; // 甲方名称
  investorsXmjz?: string; // 项目进展
  investorsDclsx?: string; // 待处理事项
  investorsYxj?: number; // 优先级
  investorsZt?: string; // 状态
  investorsZryw?: string; // 准入业务
  investorsQylx?: string; // 签约类型
  investorsTdmc?: string; // 通道名称
  investorsSfwa?: string; // 是否委案
  investorsWal?: number; // 委案量
  investorsBzsx?: string; // 备注事项
}

export const ftdsInvestorsList = (params?: FtdsInvestors | any) =>
  defHttp.get<FtdsInvestors>({ url: adminPath + '/operating/ftdsInvestors/list', params });

export const ftdsInvestorsListData = (params?: FtdsInvestors | any) =>
  defHttp.post<Page<FtdsInvestors>>({ url: adminPath + '/operating/ftdsInvestors/listData', params });

export const ftdsInvestorsForm = (params?: FtdsInvestors | any) =>
  defHttp.get<FtdsInvestors>({ url: adminPath + '/operating/ftdsInvestors/form', params });

export const ftdsInvestorsSave = (params?: any, data?: FtdsInvestors | any) =>
  defHttp.postJson<FtdsInvestors>({ url: adminPath + '/operating/ftdsInvestors/save', params, data });

export const ftdsInvestorsDelete = (params?: FtdsInvestors | any) =>
  defHttp.get<FtdsInvestors>({ url: adminPath + '/operating/ftdsInvestors/delete', params });
